package com.itlaoqi.springcloud.memberserviceopenfeign.client;

import com.itlaoqi.springcloud.memberserviceopenfeign.client.fallback.MessageServiceFallback;
import com.itlaoqi.springcloud.memberserviceopenfeign.entity.CallbackResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name="message-service",fallback = MessageServiceFallback.class)
public interface MessageService {
    @GetMapping("/sendsms")
    public CallbackResult sendSMS(@RequestParam("mobile") String mobile , @RequestParam("message") String message);
}
